package vn.sunnet.game.SinhTon.object;

import vn.sunnet.game.SinhTon.global.Assets;

import com.badlogic.gdx.graphics.g2d.TextureRegion;

public class BulletBoss extends DynamicGameObject {

	private TextureRegion texture;
	public BulletBoss() {
		super(0, 0, 22, 27);
		texture = Assets.trBulletBoss;
		velocity.y = 500 + 25 * Assets.map;
	}

	public void setPosXY(float x, float y){
		position.x = x;
		position.y = y;
	}
	public void move(float deltaTime) {
		position.add(0, -velocity.y * deltaTime);
		bounds.x = position.x - bounds.width / 2;
		bounds.y = position.y - bounds.height / 2;
	}
	
	public TextureRegion getTexture() {
		return texture;
	}
	
	public boolean isFly() {
		// Nếu đạn bay ra khỏi ngoài màn hình thì return false, còn ko thì true
		return (position.y > 0);
	}
}
